package zl.ordermanager.vo;

import java.io.Serializable;

/**
 * EasyUI 分页帮助类
 * 
 * @author 孙宇
 * 
 */
public class PageHelper implements Serializable {

	public final static int PAGE_SHOW_COUNT = 10;

	private int pageNum = 1;// 当前页

	private int numPerPage = 0;// 每页显示记录数

	private String orderField = "id";// 排序字段

	private String orderDirection = "desc";// 排序方法

	private String keywords;

	private String salesman;

	private String technician;

	private String abstractMonth;

	private String driver;

	private String deliveryMethod;

	private String customer;

	private String invoiceType;

	private String invoiceDate;

	private String startContactDate;

	private String stopContactDate;

	private String contactResult;

	private String targetType;

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getNumPerPage() {
		return numPerPage > 0 ? numPerPage : PAGE_SHOW_COUNT;
	}

	public void setNumPerPage(int numPerPage) {
		this.numPerPage = numPerPage;
	}

	public String getOrderField() {
		return orderField;
	}

	public void setOrderField(String orderField) {
		this.orderField = orderField;
	}

	public String getOrderDirection() {
		return "desc".equals(orderDirection) ? "desc" : "asc";
	}

	public void setOrderDirection(String orderDirection) {
		this.orderDirection = orderDirection;
	}

	public String getKeywords() {
		return "".equals(keywords) ? null : keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getSalesman() {
		return salesman;
	}

	public void setSalesman(String salesman) {
		this.salesman = salesman;
	}

	public String getTechnician() {
		return technician;
	}

	public void setTechnician(String technician) {
		this.technician = technician;
	}

	public String getAbstractMonth() {
		return abstractMonth;
	}

	public void setAbstractMonth(String abstractMonth) {
		this.abstractMonth = abstractMonth;
	}

	public String getDriver() {
		return driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}

	public String getDeliveryMethod() {
		return deliveryMethod;
	}

	public void setDeliveryMethod(String deliveryMethod) {
		this.deliveryMethod = deliveryMethod;
	}

	public String getCustomer() {
		return customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	public String getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(String invoiceType) {
		this.invoiceType = invoiceType;
	}

	public String getInvoiceDate() {
		return invoiceDate;
	}

	public void setInvoiceDate(String invoiceDate) {
		this.invoiceDate = invoiceDate;
	}

	public String getStartContactDate() {
		return startContactDate;
	}

	public void setStartContactDate(String startContactDate) {
		this.startContactDate = startContactDate;
	}

	public String getStopContactDate() {
		return stopContactDate;
	}

	public void setStopContactDate(String stopContactDate) {
		this.stopContactDate = stopContactDate;
	}

	public String getContactResult() {
		return contactResult;
	}

	public void setContactResult(String contactResult) {
		this.contactResult = contactResult;
	}

	public String getTargetType() {
		return targetType;
	}

	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}

}
